import http from '../service/index.js'

// 获取班级
export function getDepartmentApi(params) {
  return http.request({
    url: "/getDepartment",
    method: 'get',
    params
  })
}

// 登录
export function loginApi(params) {
  return http.request({
    url: "/login",
    method: 'get',
    params
  })
}

//  获取用户信息
export function getUserInfoApi(params) {
  return http.request({
    url: "/getUserInfo",
    method: 'get',
    params
  })
}

// 获取打卡信息 总数
export function getClockListAllApi(params) {
  return http.request({
    url: "/getClockListAll",
    method: 'get',
    params
  })
}

// 获取打卡信息 分页
export function getClockListApi(params) {
  return http.request({
    url: "/getClockList",
    method: 'get',
    params
  })
}

// 上传图片
export function uploadApi(data) {
  return http.request({
    url: "/pictureUpload",
    method: 'post',
    data
  })
}


// 打卡
export function clockInApi(params) {
  return http.request({
    url: "/clockIn",
    method: 'get',
    params
  })
}


// post请求
export function doCheckPhoneAPI(data) {
  return http.request({
    url: "/user/docheckphone",
    method: 'post',
    data
  })
}